<?php
/**
 * User: 1971229701@qq.com
 * Date: 2020/9/8/008
 * Time: 11:01
 */

namespace app\common\helper;


class CallResult extends BaseCallResult
{
    public function __construct($data = '', $msg = '', $code = 1)
    {
        parent::__construct($data, $msg, $code);
    }

    public function isFail()
    {
        return $this->getCode() != 1;
    }

    public function isSuccess()
    {
        return $this->getCode() == 1;
    }
}